<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/static/commons/taglibs.jsp"%>
<%@ include file="/static/commons/meta.jsp"%>
<html xmlns="http://www.w3.org/1999/xhtml">
 <head>
 	<title>${title }</title>
	<!--自定义index样式-->
	<link rel="stylesheet" href="${ctx }/static/styles/basic/basic.css" ></link>
	<link rel="stylesheet" href="${ctx }/static/styles/edit/box.css" ></link>
	<!--js库-->
	<%@ include file="/static/commons/jquery-easyui.jsp" %>
	<script type="text/javascript" src="${ctx}/static/widgets/easyui/plugins/jquery.draggable.js"></script>
	<script type="text/javascript" src="${ctx}/static/widgets/easyui/plugins/jquery.droppable.js"></script>
	<script type="text/javascript" src="${ctx}/static/widgets/easyui/plugins/jquery.tree.js"></script>
	<script type="text/javascript" src="${ctx}/static/scripts/set_select.js"></script>
	<script type="text/javascript" src="${ctx}/static/scripts/WdatePicker/WdatePicker.js"></script>
  </head>
  
  <body style="padding-bottom:8px;">
  		<c:set var="disabled" value=""></c:set>
  		<c:set var="ifSelect" value=""></c:set>
  		<c:if test="${not empty view}">
  			<c:set var="disabled" value="disabled"></c:set>
  			<c:set var="ifSelect" value="false"></c:set>
  		</c:if>
  		<form id="editForm" action="${ctx}/car/save" method="post">
  			<input type="hidden" value="${obj.log_id}" id="logId" name="p_logId" ></input>
  			<div class="box">
	  			<table>
	  				<tbody>
						<tr>
							<td class="message">
								<p>车牌号：</p>
							</td>
							<td colspan="1">
								<vvise:select id="carNo" name="p_carNo" sqlname="getCar" className="wd170" width="99%"
	  								defval="${obj.car_no}" ifSelect="false" />
							</td>
						</tr>
						<tr>
							<td class="message">
								<p>目的地：</p>
							</td>
							<td>
								<input type="text" id="destination" name="p_destination" value="${obj.destination }"
									class="wd170 " disabled  maxLength="20" style="width: 100%;" ></input>
							</td>
						</tr>
						<tr>
							<td class="message">
								<p>起始里程(km)：</p>
							</td>
							<td>
								<input type="text" id="startMileage" name="p_startMileage" value="${obj.start_mileage }"
									class="wd170 " disabled maxLength="20" style="width: 100%;" />
							</td>
						</tr>
						<tr>
							<td class="message">
								<p>事由：</p>
							</td>
							<td>
								<input type="text" id="useTo" name="p_useTo" value="${obj.use_to }"
									class="wd170 " disabled maxLength="20" style="width: 100%;" ></input>
							</td>
						</tr>
						<tr>
							<td class="message">
								<p>陪同人：</p>
							</td>
							<td>
								<input type="text" id="otherUser" name="p_otherUser" value="${obj.other_user }"
									class="wd170 " disabled maxLength="20" style="width: 100%;" ></input>
							</td>
						</tr>
						<tr>
							<td class="message">
								<p><span>*</span>还车时间：</p>
							</td>
							<td>
								<input type="text" id="returnDate" name="p_returnDate" value="${not empty obj.return_date ? obj.return_date : now }"
									onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',isShowClear:false,readOnly:true})"  ${disabled } 
									class="wd170 Wdate" style="width: 100%;" ></input>
							</td>
						</tr>
						<tr>
							<td class="message">
								<p><span>*</span>结束里程(km)：</p>
							</td>
							<td>
								<input type="text" id="endMileage" name="p_endMileage" value="${obj.end_mileage }"
									class="wd170 " ${disabled } maxLength="20" style="width: 100%;" ></input>
							</td>
						</tr>
						<tr>
							<td class="message">
								<p><span>*</span>还车地：</p>
							</td>
							<td>
								<input type="text" id="returnAddr" name="p_returnAddr" value="${obj.return_addr }"
									class="wd170 " ${disabled } maxLength="20" style="width: 100%;" ></input>
							</td>
						</tr>
					</tbody>
	  			</table>
	  		</div>
        </form>
  </body>
</html>